//
//  ProperyController.m
//  SafPay
//
//  Created by  ztryxh on 2018/6/25.
//  Copyright © 2018年 ebo. All rights reserved.
//

#import "ProperyController.h"

@interface ProperyController ()

@end

@implementation ProperyController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title=@"服务及隐私条款";
    [self getNetWork];
    [self.infoTextView setEditable:NO];
}
-(void)getNetWork{
    

    NSString *path=[NSString stringWithFormat:@"%@%@",kBaseUrl,kUserInfo];
    NSMutableDictionary *dict=[NSMutableDictionary new];
    [[TRRequest request] Post:path parameters:nil success:^(TRRequest *request, NSDictionary *responseDict) {
        
        
        MyLog(@"%@",responseDict);
        if([[responseDict valueForKey:@"error"] integerValue]==0){
            
           
            [self.infoTextView setText:[responseDict valueForKey:@"data"]];
            
            
        }else{
            
            
            [MBProgressHUD showErrorWithText:[responseDict valueForKey:@"error_msg"]];
        }
        
    } failure:^(TRRequest *request, NSError *error) {
        
        [MBProgressHUD showErrorWithText:@"网络请求失败！"];
    }];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
